package org.dr.st_docker.proxy;

// 代理对象
public class ServiceProxy implements Service {
    private RealService realService;

    public ServiceProxy(RealService realService) {
        this.realService = realService;
    }

    public void performOperation() {
        System.out.println("Proxy: Before operation");
        realService.performOperation();
        System.out.println("Proxy: After operation");
    }
}